﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YunShop_WebAPI.Model
{
    public class WeiDianAccessTokenResp
    {

        public Result result { get; set; }

        public Status status { get; set; }


        public class Result
        {
            /// <summary>
            /// 网页授权接口调用凭证,注意：此accesstoken与基础支持的accesstoken不同
            /// </summary>
            public string access_token { get; set; }

            /// <summary>
            /// access_token接口调用凭证超时时间，单位（秒）
            /// </summary>
            public int expire_in { get; set; }

            /// <summary>
            /// 用户刷新access_token
            /// </summary>
            public string refresh_token { get; set; }

            /// <summary>
            /// refresh_token的失效时间，单位（毫秒）
            /// </summary>
            public string refreshExpireTime { get; set; }

            /// <summary>
            /// 当前微店用户（店铺）id
            /// </summary>
            public string openid { get; set; }

            /// <summary>
            /// 当前微店用户的店铺名称
            /// </summary>
            public string shop_name { get; set; }

            /// <summary>
            /// 用户授权的作用域，使用逗号（,）分隔
            /// </summary>
            public int scope { get; set; }
            /// <summary>
            /// 当前微店用户的店铺logo
            /// </summary>
            public string shop_logo { get; set; }
        }

        public class Status
        {
            /// <summary>
            /// 状态码  0 为正常
            /// </summary>
            public int status_code { get; set; }

            /// <summary>
            /// 状态码说明  正常为 success
            /// </summary>
            public string status_reason { get; set; }
        }

    }
}
